package com.lpy.mapper;

import com.lpy.pojo.entity.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author gugu
* @description 针对表【sys_role(角色表)】的数据库操作Mapper
* @createDate 2025-02-11 20:05:48
* @Entity com.lpy.pojo.entity.SysRole
*/
public interface SysRoleMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(Long id);
    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);

    List<SysRole> selectAll();

    int addRole(@Param("role") SysRole role);

    int deleteRoles(@Param("roleId") String roleId);

    int updateRoleStatus(@Param("roleId") String roleId, @Param("status") Integer status);

    List<SysRole> getRoleByUserId(@Param("id") Long id);

}
